package com.book.management.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: 何胤宏
 * @Description:  20173969
 */

@Data
@Accessors(chain = true)
@TableName("management_sendback")
public class SendBack {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("indentid")
    private Integer indentid;

    @TableField("message")
    private String message;

    @TableField("pubid")
    private String pubid;

    @TableField("bookname")
    private String bookname;

    @TableField("bookmoney")
    private Integer bookmoney;

    @TableField("booktype")
    private String booktype;

    @TableField("number")
    private Integer number;

    @TableField("principal")
    private String principal;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(value = "indentdate",fill = FieldFill.INSERT)
    private Date indentdate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("backdate")
    private Date backdate;

    @TableField("bookstatus")
    private String bookstatus;

    @TableField("status")
    private String status;

    @TableField(exist = false)
    private String indentedStatus;

    @TableField(exist = false)
    private String backstatus;

    @TableField("totalmoney")
    private Integer totalmoney;
}
